package com.acsior.hibernate.vo;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * SecAllowedGroupResource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sec_allowed_group_resources")
@GeneratorKey(tableName = "sec_allowed_group_resources")
public class SecAllowedGroupResourceVO extends HibernatePersistantIntegerIdVO {
	private static final long serialVersionUID = -7464141495361551132L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "security_resource_type_id")
	private NomSecurityResourceTypeVO nomSecurityResourceType;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "group_id")
	private SecGroupVO secGroup;

	@Column(name = "system_code", nullable = false, length = 200)
	private String systemCode;

	// Constructors

	/** default constructor */
	public SecAllowedGroupResourceVO() {
		// и те така
	}

	
	/**
	 * @return стойността на nomSecurityResourceType
	 */
	public NomSecurityResourceTypeVO getNomSecurityResourceType() {
		return this.nomSecurityResourceType;
	}

	
	/**
	 * @param nomSecurityResourceType се залага в nomSecurityResourceType
	 */
	public void setNomSecurityResourceType(NomSecurityResourceTypeVO nomSecurityResourceType) {
		this.nomSecurityResourceType = nomSecurityResourceType;
	}

	
	/**
	 * @return стойността на secGroup
	 */
	public SecGroupVO getSecGroup() {
		return this.secGroup;
	}

	
	/**
	 * @param secGroup се залага в secGroup
	 */
	public void setSecGroup(SecGroupVO secGroup) {
		this.secGroup = secGroup;
	}

	
	/**
	 * @return стойността на systemCode
	 */
	public String getSystemCode() {
		return this.systemCode;
	}

	
	/**
	 * @param systemCode се залага в systemCode
	 */
	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}

}